module.exports = {
  async login(ctx) {
    const ids = await ctx.req.db.driver.execQueryAsync(
      "SELECT id FROM zt_action"
    ); // 测试原生 sql
    const zt_actions = await ctx.req.models.zt_action.findAsync({
      actor: "admin"
    }); // 测试 orm
    // console.log(results)
    ctx.body = {
      username: "wolfx",
      sex: "man",
      age: "20",
      zt_actions: zt_actions,
      ids: ids
    };
  }
};
